.payslipSettingModal {
    display: flex;
    gap: 24px;
}

@maxHeight: calc(100vh - 260px);
.setting {
    width: 370px;
    padding: 16px 20px;
    background: #fafafa;
    border-radius: 4px;
    overflow: auto;

    .header {
        display: flex;
        line-height: 24px;

        .title {
            font-weight: bold;
            font-size: 16px;
        }

        .tip {
            margin-left: auto;
            font-size: 14px;
            color: rgba(0, 0, 0, 0.45);
        }
    }

    .settingBody {
        margin-top: 25px;
        max-height: calc(100vh - 340px);
        overflow: auto;

        .checkItem {
            margin-top: 16px;
            margin-bottom: 16px;

            .checkItemTitle {
                margin-left: 8px;
            }
        }
    }
}

.preview {
    @border-color: #e8e8e8;

    padding: 40px 50px;
    width: 852px;
    border: 1px dashed @border-color;
    max-height: @maxHeight;
    overflow: auto;

    .bold {
        font-weight: bold;
    }
    .textTop {
        vertical-align: top;
    }
    .textLeft {
        text-align: left;
    }
    .textRight {
        text-align: right;
    }
    .textCenter {
        text-align: center;
    }

    .head {
        margin: 0 auto 30px;
        font-size: 24px;
        color: rgba(0, 0, 0, 0.85);
        text-align: center;

        .logo {
            margin-left: 40px;
        }
    }

    .secrecyLevel {
        margin-top: 16px;
        margin-bottom: 16px;
        font-size: 16px;
        line-height: 24px;
        color: rgba(0, 0, 0, 0.85);
    }

    .period {
        font-size: 14px;
        color: rgba(0, 0, 0, 0.85);
        line-height: 22px;
    }

    .basicInfo {
        display: flex;

        .left {
            .item {
                padding-top: 3px;
                padding-bottom: 3px;
                padding-left: 12px;

                .label {
                    font-size: 14px;
                    color: rgba(0, 0, 0, 0.45);
                }

                .description {
                    font-size: 14px;
                    color: rgba(0, 0, 0, 0.65);
                }
            }
        }

        .right {
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            margin-left: auto;
            min-width: 168px;
            .title {
                margin-bottom: 8px;
                font-size: 14px;
                color: rgba(0, 0, 0, 0.45);
                line-height: 22px;
            }

            .info {
                padding: 16px 22px;
                color: rgba(0, 0, 0, 0.85);
                border: 1px solid @border-color;
                border-radius: 4px;
            }
        }
    }

    .currencySign {
        margin-top: 8px;
        margin-bottom: 8px;
        text-align: right;
    }

    .body {
        .salaryItemBox {
            td {
                padding-top: 0;
                padding-bottom: 0;
                border-bottom: none;
                border-top: none;
            }
        }
        .salaryItem {
            margin-top: 15px;
            margin-bottom: 15px;
            line-height: 22px;
        }
        table {
            border-radius: 4px;
            border-collapse: separate;
            border-spacing: 0;
            padding: 0;
            width: 100%;

            tr > th {
                font-weight: bold;
                background: #fafafa;
            }

            tr > th,
            tr > td {
                padding: 8px 16px;
                border-right: 1px solid @border-color;
                border-bottom: 1px solid @border-color;

                &.pt0 {
                    padding-top: 0;
                }

                &.noPadding {
                    padding: 0;
                }

                &:first-child {
                    border-left: 1px solid @border-color;
                }
            }

            tr:nth-child(2) > th,
            tr:nth-child(2) > td {
                border-top: 1px solid @border-color;
                &:first-child {
                    border-top-left-radius: 4px;
                }
                &:last-child {
                    border-top-right-radius: 4px;
                }
            }
            tr:last-child > th,
            tr:last-child > td {
                &:first-child {
                    border-bottom-left-radius: 4px;
                }
                &:last-child {
                    border-bottom-right-radius: 4px;
                }
            }

            table {
                border: none;
                tr > th,
                tr > td {
                    border-style: none;
                    &:first-child {
                        border-left: none;
                    }
                    &.borderRight {
                        border-right: 1px solid @border-color;
                    }
                }
                tr:nth-child(2) > th,
                tr:nth-child(2) > td {
                    border-top: none;
                    &:first-child {
                        border-top-left-radius: unset;
                    }
                    &:last-child {
                        border-top-right-radius: unset;
                    }
                }
            }
        }
    }

    .tail {
        margin-top: 16px;
        font-size: 14px;
        color: rgba(0, 0, 0, 0.45);
        line-height: 22px;
    }
}
